		<div id="content">
			<div class="c1">
				<div class="controls">
					<?php include('topnav.php'); ?>
					<?php include(APPPATH.'/views/profile_box.php'); ?>
					
				</div>
                <?php include(APPPATH.'/views/noticeMsg.php'); ?>
				<div class="tabs">
					<div id="tab-1" class="tab">
						<article>
							<div class="text-section">
								<h1>权限管理</h1>
								<p>在此管理系统用户权限</p>
							</div>
							<?php 
							//var_dump($oldAuth);
							if (@in_array("修改权限",$userAuth))
							{
								//修改权限的操作
								if ($optuser != '')
								{
									//已经设置操作账号
									echo '<form action="/phpdb/index.php/user/userauth" method="post">';
									echo '<input type="submit" name="set" value="设置"/>';
									echo '<input type="hidden" name="optuser" value="'.$optuser.'"/>';
									foreach($list as $groupKey => $group)
									{
										echo '<div class="auth-group">';
										echo '<div class="group-title">'.$groupKey.'</div>';
										echo '<ul>';
										foreach($group as $item)
										{
											echo '<li class="group-item">';
											if (in_array($item,$optuserAuth))
												echo '<label><input type="checkbox" name="item[]" value="'.$item.'" checked="checked">'.$item.'</label>';
											else
												echo '<label><input type="checkbox" name="item[]" value="'.$item.'">'.$item.'</label>';
											echo '</li>';
										}
										echo '</ul>';
										echo '</div>';
									}
									echo '</form>';
								}
								else
								{
									?>
																	<form action="/phpdb/index.php/user/userauth" method="get">
																	用户ID:<select name="optuser" />
									<?php 
										$query = $this->db->query("select User_ID from user");
										if ($query->num_rows() > 0)
										{ 
											foreach ($query->result() as $row)
											{ 
												echo '<option value="'.$row->User_ID.'">'.$row->User_ID.'</option>';
											}
										}
									?>
																	 </select>
																	 <input type="submit" name="submit" value="选择"/>
																	 </form>
																	<?php
								}
							}
							 ?>
						</article>
					</div>
				</div>
			</div>
		</div>